#include "Domino.h"


namespace dgame
{
Domino::Domino(const int left, const int right)
    : mLeft(left), mRight(right)
{
    if (left > right)
    {
        mLeft = right;
        mRight = left;
    }
}
bool Domino::operator==(const Domino &tmp) const
{
    return (mLeft == tmp.getLeft() && mRight == tmp.getRight());
}

int Domino::getPoints() const
{
	return mLeft + mRight;
}

}
